body {
    margin: 0;
}

.home-header {
    background: url(../img/home-bg.png);
    /* background-size 属性规定背景图像的尺寸。 */
    background-size: 100% auto;
    text-align: center;
    padding-bottom: 1rem;
}

.home-header > img {
    width: 65%;
    /* 单位除了px    1rem = 16px */
    margin: 2rem;
}

.home-header form {
    background-color: white;
    width: 90%;
    /* 居中显示 */
    margin: 0 auto;
    line-height: 2rem;
    border-radius: 2rem;
}

.home-header form input {
    width: 75%;
    border: none;
    outline: none;
}

.home-header form button {
    font-size: 0.9rem;
    color: #5bd4c7;
    border: none;
    outline: none;
    background: none;
}

/* 分类 */
.home-categories {
    padding: 0 1rem;
}

.home-categories dt {
    /* 设置flex布局 */
    display: flex;
    /* 纵向对齐垂直居中 */
    align-items: center;
}


.home-categories dt img {
    width: 3rem;
    height: 3rem;
    margin: 1rem;
}

.home-categories dd {
    margin: 0;
}

.home-categories dd .tag {
    background: #f5f5f5;
    color: #666666;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    /* 将行内元素转换为行内块级元素inline-block */
    display: inline-block;
}
